package com.yeskery.nut.web.demo.service;

import com.yeskery.nut.extend.mybatisplus.IService;
import com.yeskery.nut.web.demo.domain.Wallet;

/**
 * 用户钱包service
 * @author Yeskery
 * 2023/7/28
 */
public interface WalletService extends IService<Wallet> {

    /**
     * 扣除用户积分
     * @param userId
     * @param point
     * @return
     */
    boolean deductPoint(Integer userId, Integer point);
}
